package com.jprocms.module.cms.dal.dataobject.content;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jpro.framework.mybatis.core.dataobject.DelBaseDO;
import com.jprocms.module.cms.dal.base.ICustom;
import lombok.*;

/**
 * 内容自定义数据 DO
 *
 * @author jprocms
 */
@TableName("cms_content_attr")
@KeySequence("cms_content_attr_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ContentAttrDO extends DelBaseDO implements ICustom {

    /**
     * ID
     */
    @TableId
    private Long id;

    /**
     * 多租户编号
     */
    private Long tenantId;

    /**
     * 栏目ID
     */
    private Long contentId;
    /**
     * 名称
     */
    private String name;
    /**
     * 类型
     */
    private String attrType;
    /**
     * 值
     */
    private String attrValue;

    public ContentAttrDO(Long contentId, String name, String attrType, String attrValue) {
        this.contentId = contentId;
        this.name = name;
        this.attrType = attrType;
        this.attrValue = attrValue;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getContentId() {
        return contentId;
    }

    public void setContentId(Long contentId) {
        this.contentId = contentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAttrType() {
        return attrType;
    }

    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }

    public String getAttrValue() {
        return attrValue;
    }

    public void setAttrValue(String attrValue) {
        this.attrValue = attrValue;
    }
}
